package com.day17test;

public class Test3_Runnable {
	public static void main(String[] args) {
		MyRunnable target = new MyRunnable();
		Thread t1 = new Thread(target);
		t1.start();
		Thread t2 = new Thread(target);
		t2.start();
	}
}
class MyRunnable implements Runnable{
	
	@Override
	public void run() {
		for(int i=0;i<10;i++) {
			System.out.println(Thread.currentThread().getName()+"=="+i);
		}
	}
	
}